package com.wjh.graduation.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

/**
 * <p>
 *
 * </p>
 *
 * @author Wu Jiahong
 * @since 2022-01-25
 */
@Getter
@Setter
@Accessors(chain = true)
@ApiModel(value = "User对象", description = "")
public class User {

    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;
    @NotBlank
    private String account;
    @NotBlank
    private String password;


    public static final String USERID = "userId";

    public static final String ACCOUNT = "account";

    public static final String PASSWORD = "password";


}
